package org.example.service.impl;

import org.example.feign.UserFeign;
import org.example.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserFeign userFeign;


    @Override
    public void findAll(String num) {
//        StringBuilder stringBuilder = new StringBuilder();
//        for (int i = 0; i < 10000000; i++) {
//            stringBuilder.append(i);
//        }

        StringBuffer stringBuffer = new StringBuffer();
        for (int i = 0; i < Integer.parseInt(num); i++) {
            stringBuffer.append(i);
        }
//        List<String> list = userFeign.findAll(num);
//        System.out.println(list.size());
    }
}



